import * as echarts from "echarts";
export const DColor = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  {
    offset: 0,
    color: "#16C8FB",
  },
  {
    offset: 1,
    color: "#6DF1FF",
  },
]);
export const DHColor = new echarts.graphic.LinearGradient(1, 0, 0, 0, [
  {
    offset: 0,
    color: "#16C8FB",
  },
  {
    offset: 1,
    color: "#0958D2",
  },
]);
export const DUColor = [
  // "#30A4F3",
  // "#91cc75",
  // "#fac858",
  // "#ee6666",
  // "#73c0de",
  // "#3ba272",
  // "#fc8452",
  "#91cc75",
  "#30A4F3",
  "#fac858",
  "#ee6666",
  "#73c0de",
  "#3ba272",
  "#fc8452",
];
export const DXColor = "#FFF081";
export const DUXColor = ["#4297FF", "#5AD8A6"];
export const PIEColor = [
  "#75bedc",
  "#ef6567",
  "#91cd77",
  "#f9c956",
  "#5470c6",
  "#3692FF",
  "#FF9900",
  "#669933",
  "#990066",
];
export const JBColor = [
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "#6DF1FF",
    },
    {
      offset: 1,
      color: "#6DF1FF",
    },
  ]),
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "#93EED2",
    },
    {
      offset: 1,
      color: "#5AD8A6",
    },
  ]),
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "#FFF576",
    },
    {
      offset: 1,
      color: "#FFE841",
    },
  ]),
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "#FF9696",
    },
    {
      offset: 1,
      color: "#FF5D5D",
    },
  ]),
];

export const DXJBColor = [
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "rgba(48,164,243,1)",
    },
    {
      offset: 1,
      color: "rgba(48,164,243,0)",
    },
  ]),
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "rgba(99,219,173,1)",
    },
    {
      offset: 1,
      color: "rgba(99,219,173,0)",
    },
  ]),
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    {
      offset: 0,
      color: "rgba(250,200,88,1)",
    },
    {
      offset: 1,
      color: "rgba(250,200,88,0)",
    },
  ]),
];
